import http from '../utils/http';

export function getFinance(params) {
    return http.get('/api/finance', params);
}

export function addFinance(params) {
    return http.post('/api/finance', params);
}

export function updateFinance(params) {
    return http.put(`/api/finance/${params.id}`, params);
}

export function delFinance(params) {
    return http.delete(`/api/finance/${params.id}`, params);
}

export function getFinanceDetail(params) {
    return http.get(`/api/finance/${params.id}`, params);
}

export function getFinanceDownload(params) {
    return http.get('/api/finance/download', params);
}


